<?php

// CONTROLEUR

class Article {
    
 private $vue;
 
 public function __construct() {
    require_once './modeles/modele_art.php';
    $this->vue = array();
 }

 public function afficherArt() {
     
    $data = new AfficherArticle();
    $this->vue = $data->select("article", "*");
    require_once './vues/vue_articles.php'; 
 } 
 
 public function modifierArt() {
     
    $data = new AfficherArticle();
    $this->vue = $data->select("article", "*");
    require_once './vues/vue_articles.php'; 
 } 
}

?>